package com.ets.service;

import javax.annotation.Resource;
import java.util.*;
import org.springframework.stereotype.Service;
import com.ets.dao.*;
import com.ets.entity.*;
@Service
public class StuResultService {
	@Resource
	private StuResultDao dao;
	
	//add student result
	public void add(StuResult result){
		dao.add(result);
	}
	//Get all student results.
	public List<StuResult> getAllStuResults(){
		return dao.getAll();
	}
	
	//Delete student result.
	public void deleteResult(int id){
		dao.delete(id);
	}
}
